  //设置密码
  
  $('#submit-btn').click(function(){
        	myForm = collectForm();
        	if(checkForm(myForm)){
        		return false;
        	}
        	jQuery.support.cors = true;
    		var httpHost = getHttpHost();	    			
    		$.post(httpHost+'/index/Base/fgetpwd.html',myForm,function(d){
			  da=JSON.parse(d);		
		      if(da.code==400){
				mui.openWindow({
               url: 'login.html',
               id: 1,
               waiting:{
                  autoShow:true,
                  title:'正在加载...'
              }});
		      }else{
		      	alert(da.msg);
		      }
		      
		      
		    })
        })
  
//得到表单数据
		function  collectForm(){
		    var myForm = {};
		    myForm.user_password = $('#setPas').val();
		    myForm.user_name=window.localStorage.getItem('cphone');
		    return myForm;
		}
		//表单验证
		function checkForm(data){
			
			if(data.user_password==''){
				alert('密码不能为空');
				return true;
			}
		}
